package com.yanqu.road.entity.activity.yuanbaolottery;

import com.yanqu.road.entity.config.system.NormalWeightItem;
import com.yanqu.road.utils.string.StringUtils;

import java.math.BigInteger;
import java.util.List;

public class YuanBaoLotteryWeight extends NormalWeightItem {
    private int pos;

    public YuanBaoLotteryWeight() {

    }

    public YuanBaoLotteryWeight(int pos, String str) {
        List<Integer> list = StringUtils.stringToIntegerList(str, ";");
        this.pos = pos;

        setValue(BigInteger.valueOf(list.get(0)));
        setWeight(list.get(1));

    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

}
